package com.idanchuang.support.etcache.local.caffeine;

import com.idanchuang.support.etcache.local.LocalCache;
import com.idanchuang.support.etcache.local.LocalCacheConfig;
import com.idanchuang.support.etcache.local.LocalCacheFactory;

/**
 *
 * 基于Caffeine的LocalCache对象工厂类
 *
 * @author yjy
 * Created at 2021/12/23 8:46 下午
 */
public class CaffeineLocalCacheFactory implements LocalCacheFactory {

    @Override
    public <K, V> LocalCache<K, V> getBean(LocalCacheConfig config) {
        return new CaffeineEtCache<>(config);
    }

}
